/*
 * @Author: rxn 1003312535@qq.com
 * @Date: 2024-06-19 10:24:45
 * @LastEditors: rxn 1003312535@qq.com
 * @LastEditTime: 2024-11-11 09:07:56
 * @FilePath: \vue3-progect\src\router\menu\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { t } from "@/utils/commonFun";
export default [
	{
		id: 1,
		path: "/home",
		name: "Home",
		menuType: "topMenu",
		icon: "",
		component: "",
		meta: {
			orderNo: 1,
			icon: "ion:grid-outline",
			title: t("routes.menu.home")
		},
		children: [
			{
				path: "/home/todo",
				name: "Todo",
				component: "/home/todo/index.vue",
				meta: {
					orderNo: 1,
					icon: "ion:grid-outline",
					title: t("home.todo.name")
				}
			},
			{
				path: "/home/workbench",
				name: "WorkBench",
				component: "/home/workbench/index.vue",
				meta: {
					orderNo: 2,
					icon: "ion:grid-outline",
					title: t("home.WorkBench.name")
				}
			}
		]
	},
	{
		id: "2",
		path: "/config",
		name: "config",
		icon: "ion:grid-outline",
		menuType: "topMenu",
		component: "",
		meta: {
			orderNo: 5,
			icon: "ion:grid-outline",
			title: t("config.name")
		},
		children: [
			{
				path: "/config/module",
				name: "module",
				menuType: "module",
				meta: {
					orderNo: 1,
					icon: "ion:grid-outline",
					title: t("config.module.name")
				},
				component: "",
				children: [
					{
						path: "/config/module/functionModule",
						name: "function",
						component: "/config/module/functionModule.vue",
						meta: {
							orderNo: 1,
							icon: "ion:grid-outline",
							title: t("config.module.functionModule")
						}
					}
				]
			},
			{
				path: "/config/wallpaper",
				name: "module",
				menuType: "module",
				meta: {
					orderNo: 1,
					icon: "ion:grid-outline",
					title: t("config.wallpaper.name")
				},
				component: "",
				children: [
					{
						path: "/config/wallpaper/categoryManagement",
						name: "function",
						component: "/config/wallpaper/categoryManagement/index.vue",
						meta: {
							orderNo: 1,
							icon: "ion:grid-outline",
							title: t("config.wallpaper.categoryManagement")
						}
					},
					{
						path: "/config/wallpaper/pictureManagement",
						name: "function",
						component: "/config/wallpaper/pictureManagement/index.vue",
						meta: {
							orderNo: 1,
							icon: "ion:grid-outline",
							title: t("config.wallpaper.pictureManagement")
						}
					}
				]
			}
		]
	},
	{
		id: "3",
		path: "/example",
		name: "测试案例",
		menuType: "topMenu",
		meta: {
			orderNo: 10,
			title: t("routes.testCaseModule.name"),
			icon: "edit",
			open: true
		},
		component: "/example/index.vue",
		children: [
			{
				path: "/example/three",
				name: "three.js",
				menuType: "module",
				meta: {
					title: t("routes.testCaseModule.three.name"),
					open: true
				},
				component: "",
				children: [
					{
						path: "/example/three/case",
						name: "案例",
						menuType: "module",
						meta: {
							title: t("routes.testCaseModule.three.case.name")
						},
						component: "",
						children: [
							{
								path: "/example/three/case/index",
								name: "飞线功能",
								menuType: "module",
								meta: {
									title: t("routes.testCaseModule.three.case.flyLine.name")
								},
								component: "",
								children: [
									{
										path: "/example/three/case/flyLine/flyLine01",
										name: "飞线功能(一)",
										menuType: "function",
										meta: {
											title: t(
												"routes.testCaseModule.three.case.flyLine.flyLine01"
											)
										},
										component: "/example/three/case/flyLine/flyLine01.vue"
									}
								]
							},
							{
								path: "/example/three/case/map/index",
								name: "THREE地图",
								menuType: "module",
								meta: {
									title: t("routes.testCaseModule.three.case.map.name")
								},
								component: "",
								children: [
									{
										path: "/example/three/case/map/map1",
										name: "THREE地图(一)",
										menuType: "function",
										meta: {
											title: t("routes.testCaseModule.three.case.map.name")
										},
										component: "/example/three/case/map/map1.vue"
									}
								]
							},
							{
								path: "/example/three/case/map/map2",
								name: "小车移动",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.case.map.name")
								},
								component: "/example/three/case/map/map2.vue"
							}
						]
					},
					{
						path: "/example/three/study",
						name: "demo学习",
						menuType: "module",
						meta: {
							title: t("routes.testCaseModule.three.study.name")
						},
						component: "",
						children: [
							{
								path: "/example/three/study/SphereGeometry",
								name: "球缓存几何体",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.SphereGeometry")
								},
								component: "/example/three/study/SphereGeometry.vue"
							},
							{
								path: "/example/three/study/VectorAndTexture",
								name: "顶点UV坐标、纹理贴图",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.VectorAndTexture")
								},
								component: "/example/three/study/VectorAndTexture.vue"
							},
							{
								path: "/example/three/study/LoadExternal3DModeling",
								name: "加载外部三维建模",
								menuType: "function",
								meta: {
									title: t(
										"routes.testCaseModule.three.study.LoadExternal3DModeling"
									)
								},
								component: "/example/three/study/LoadExternal3DModeling.vue"
							},
							{
								path: "/example/three/study/GenerateCurveGeometry",
								name: "生成曲线几何体",
								menuType: "function",
								meta: {
									title: t(
										"routes.testCaseModule.three.study.GenerateCurveGeometry"
									)
								},
								component: "/example/three/study/GenerateCurveGeometry.vue"
							},
							{
								path: "/example/three/study/Sprite",
								name: "精灵模型Sprite",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.Sprite")
								},
								component: "/example/three/study/Sprite.vue"
							},
							{
								path: "/example/three/study/EffectComposer",
								name: "后处理",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.EffectComposer")
								},
								component: "/example/three/study/EffectComposer.vue"
							},
							{
								path: "/example/three/study/Camera",
								name: "相机",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.Camera")
								},
								component: "/example/three/study/Camera.vue"
							},
							{
								path: "/example/three/study/lightAndShadow",
								name: "光源和阴影",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.lightAndShadow")
								},
								component: "/example/three/study/lightAndShadow.vue"
							},
							{
								path: "/example/three/study/PipelineRoaming",
								name: "管道漫游",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.PipelineRoaming")
								},
								component: "/example/three/study/PipelineRoaming.vue"
							},
							{
								path: "/example/three/study/RayPickupModel",
								name: "射线拾取模型",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.RayPickupModel")
								},
								component: "/example/three/study/RayPickupModel.vue"
							},
							{
								path: "/example/three/study/CSS2DRenderer",
								name: "场景标注标签信息",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.CSS2DRenderer")
								},
								component: "/example/three/study/CSS2DRenderer.vue"
							},
							{
								path: "/example/three/study/shader",
								name: "着色器",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.three.study.shader")
								},
								component: "/example/three/study/shader.vue"
							}
						]
					},
					{
						path: "/example/three/geometry",
						name: "缓存几何",
						menuType: "function",
						meta: {
							title: t("routes.testCaseModule.three.bufferGeometry")
						},
						component: "/example/three/geometry/index.vue"
					},
					{
						path: "/example/three/scene",
						name: "场景",
						menuType: "function",
						meta: {
							title: t("routes.testCaseModule.three.scene")
						},
						component: "/example/three/study/scene.vue"
					}
				]
			},
			{
				path: "/example/d3",
				name: "d3",
				menuType: "module",
				meta: {
					title: t("routes.testCaseModule.d3.name")
				},
				component: "",
				children: [
					{
						path: "/example/d3/force",
						name: "力模型",
						menuType: "module",
						meta: {
							title: t("routes.testCaseModule.d3.force.name")
						},
						component: "",
						children: [
							{
								path: "/example/d3/force/RelationshipGraph",
								name: "关系图谱",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.d3.force.RelationshipGraph")
								},
								component: "/example/d3/force/RelationshipGraph.vue"
							}
						]
					}
				]
			},
			{
				path: "/example/map",
				name: "地图",
				menuType: "module",
				meta: {
					title: t("routes.testCaseModule.map.name"),
					en: "Map",
					cn: "地图"
				},
				component: "",
				children: [
					{
						path: "/example/map/amap",
						name: "高德地图",
						menuType: "module",
						meta: {
							title: t("routes.testCaseModule.map.amap.name")
						},
						component: "",
						children: [
							{
								path: "/example/map/amap/AdministrativeArea",
								name: "高德地图(一)",
								menuType: "function",
								meta: {
									title: t("routes.testCaseModule.map.amap.AdministrativeArea")
								},
								component: "/example/map/amap/AdministrativeArea.vue"
							}
						]
					}
				]
			},
			{
				path: "/example/echarts",
				name: "数据可视化",
				menuType: "module",
				meta: {
					title: t("routes.testCaseModule.echarts.name")
				},
				component: "",
				children: [
					{
						path: "/example/echarts/map",
						name: "EchartMap",
						menuType: "function",
						meta: {
							title: t("routes.testCaseModule.echarts.map")
						},
						component: "/example/echarts/map.vue"
					}
				]
			},
			{
				path: "/example/relationGraph",
				name: "relationGraph",
				menuType: "module",
				meta: {
					title: t("routes.testCaseModule.relationGraph.name")
				},
				component: "",
				children: [
					{
						path: "/example/relationGraph/index",
						name: "relationGraph(一)",
						menuType: "function",
						meta: {
							title: t("routes.testCaseModule.relationGraph.relationGraph1")
						},
						component: "/example/relationGraph/index.vue"
					}
				]
			},
			{
				path: "/example/filePrev",
				name: "filePrev",
				menuType: "module",
				meta: {
					title: t("routes.testCaseModule.filePrev.name")
				},
				component: "",
				children: [
					{
						path: "/example/relationGraph/index",
						name: "relationGraph(一)",
						menuType: "function",
						meta: {
							title: t("routes.testCaseModule.filePrev.'vue-office")
						},
						component: "/example/filePrev/index.vue"
					}
				]
			}
			// {
			// 	path: "/example",
			// 	name: "功能测试模块",
			// 	meta: {
			// 		title: t("routes.FunctionalTestModule.name")
			// 	},
			// 	component: "layout",
			// 	children: [
			// 		{
			// 			path: "/example/scrollTable",
			// 			name: "滚动列表",
			// 			meta: {
			// 				title: t("routes.FunctionalTestModule.svg")
			// 			},
			// 			component: "/example/scrollTable/index.vue"
			// 		},
			// 		{
			// 			path: "/example/svg",
			// 			name: "svg控件",
			// 			meta: {
			// 				title: t("routes.FunctionalTestModule.svg")
			// 			},
			// 			component: "/example/svg/svg.vue"
			// 		},
			// 		{
			// 			path: "/example/ace",
			// 			name: "在线编辑",
			// 			meta: {
			// 				title: t("routes.ace.aceStudy")
			// 			},
			// 			component: "/example/ace/ace.vue"
			// 		},
			// 	]
			// }
		]
	}
];

// let routerList: Array<menuInterface>;

// menu.forEach((item) => {});
// export default routerList;
